package net.da.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="users_objects_operations")
public class UsersObjectsOperationsEntity {

    @Id
    private Integer id;

    @ManyToOne
    @JoinColumn(name="sys_user_id", nullable=false)
    private SysUserEntity sysUser;

    @ManyToOne
    @JoinColumn(name="organisation_user_id", nullable=false)
    private OrganisationUserEntity organisationUser;

    @ManyToOne
    @JoinColumn(name="object_id", nullable=false)
    private BusinessObjectEntity object;

    @ManyToOne
    @JoinColumn(name="acl_id", nullable=false)
    private AclEntity acl;

    @Column(name="operation", nullable=false)
    private Integer operationId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BusinessObjectEntity getObject() {
        return object;
    }

    public void setObject(BusinessObjectEntity object) {
        this.object = object;
    }

    public Integer getOperationId() {
        return operationId;
    }

    public void setOperationId(Integer operationId) {
        this.operationId = operationId;
    }

    public AclEntity getAcl() {
        return acl;
    }

    public void setAcl(AclEntity acl) {
        this.acl = acl;
    }

    public OrganisationUserEntity getOrganisationUser() {
        return organisationUser;
    }

    public void setOrganisationUser(OrganisationUserEntity organisationUser) {
        this.organisationUser = organisationUser;
    }

    public SysUserEntity getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUserEntity sysUser) {
        this.sysUser = sysUser;
    }

}
